Optimal. Leaf size=144 \[ -\frac {2 (a+i a \tan (c+d x))^m}{d m (2+m)}+\frac {\, _2F_1\left (1,m;1+m;\frac {1}{2} (1+i \tan (c+d x))\right ) (a+i a \tan (c+d x))^m}{2 d m}+\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (2+m)}-\frac {m (a+i a \tan (c+d x))^{1+m}}{a d \left (2+3 m+m^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {3641, 3673,
3608, 3562, 70} \begin {gather*} \frac {(a+i a \tan (c+d x))^m \, _2F_1\left (1,m;m+1;\frac {1}{2} (i \tan (c+d x)+1)\right )}{2 d m}-\frac {m (a+i a \tan (c+d x))^{m+1}}{a d \left (m^2+3 m+2\right )}+\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (m+2)}-\frac {2 (a+i a \tan (c+d x))^m}{d m (m+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 3562
Rule 3608
Rule 3641
Rule 3673
Rubi steps
\begin {align*} \int \tan ^3(c+d x) (a+i a \tan (c+d x))^m \, dx &=\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (2+m)}-\frac {\int \tan (c+d x) (a+i a \tan (c+d x))^m (2 a+i a m \tan (c+d x)) \, dx}{a (2+m)}\\ &=\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (2+m)}-\frac {m (a+i a \tan (c+d x))^{1+m}}{a d \left (2+3 m+m^2\right )}-\frac {\int (a+i a \tan (c+d x))^m (-i a m+2 a \tan (c+d x)) \, dx}{a (2+m)}\\ &=-\frac {2 (a+i a \tan (c+d x))^m}{d m (2+m)}+\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (2+m)}-\frac {m (a+i a \tan (c+d x))^{1+m}}{a d \left (2+3 m+m^2\right )}+i \int (a+i a \tan (c+d x))^m \, dx\\ &=-\frac {2 (a+i a \tan (c+d x))^m}{d m (2+m)}+\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (2+m)}-\frac {m (a+i a \tan (c+d x))^{1+m}}{a d \left (2+3 m+m^2\right )}+\frac {a \text {Subst}\left (\int \frac {(a+x)^{-1+m}}{a-x} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {2 (a+i a \tan (c+d x))^m}{d m (2+m)}+\frac {\, _2F_1\left (1,m;1+m;\frac {1}{2} (1+i \tan (c+d x))\right ) (a+i a \tan (c+d x))^m}{2 d m}+\frac {\tan ^2(c+d x) (a+i a \tan (c+d x))^m}{d (2+m)}-\frac {m (a+i a \tan (c+d x))^{1+m}}{a d \left (2+3 m+m^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 33.17, size = 0, normalized size = 0.00 \begin {gather*} \int \tan ^3(c+d x) (a+i a \tan (c+d x))^m \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.09, size = 0, normalized size = 0.00 \[\int \left (\tan ^{3}\left (d x +c \right )\right ) \left (a +i a \tan \left (d x +c \right )\right )^{m}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{m} \tan ^{3}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {tan}\left (c+d\,x\right )}^3\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^m \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________